package org.lanqiao.tjut.service.impl;

import java.util.List;

import org.lanqiao.tjut.bean.UsersEntity;
import org.lanqiao.tjut.dao.IUserInfoDao;
import org.lanqiao.tjut.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements IUserService {
	// 依赖注入，面向接口的编程
	@Autowired
	private IUserInfoDao userDao;

	@Override
	//@Transactional(readOnly = true, propagation = Propagation.NEVER)
	public List<UsersEntity> selectAllUsersInfo() {
		// 调用dao层完成数据库查询操作
		return userDao.selectAllUsersInfo();
	}

}
